#ifndef __MB_CONF_H
#define __MB_CONF_H

//#include "MCU_xxx.h"

#define MB_MASTER   0
#define MB_SLAVER   1
#define MODBUS_MODE MB_SLAVER

#define MB_RTU_MIN_SIZE	    7
#define MB_RTU_MAX_SIZE	    1031	//最大不超过255

#if (MODBUS_MODE == MB_MASTER)
 #define MB_ERR_MAX_TIMES	3
 #define MB_REC_TIMEOUT		100  //单位3.5T
#endif
#endif